package com.example.demo01.Repository;

import com.example.demo01.Entity.SalesOpportunity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SalesOpportunityRepository extends JpaRepository<SalesOpportunity, Long> {
    List<SalesOpportunity> findByStage(String stage);
    List<SalesOpportunity> findBySalesPerson(String salesPerson);
}
